import React, { Component } from 'react';
import { Route, Switch, Redirect } from 'react-router-dom'


// 我的
// 账单 /bill
import Bill from 'pages/my/child/Bill'
// 余额/balance
import Balance from 'pages/my/child/Balance'
// 充值 /recharge
import Recharge from 'pages/my/child/Recharge'
// 提现 /drawmoney
import Drawmoney from 'pages/my/child/Drawmoney'



//我的任务
import Mytask from 'pages/mytask/Mytask.jsx'
import TaskComplete from 'pages/mytask/components/TaskComplete.jsx'
import CheckTask from 'pages/mytask/checkTask/CheckTask'
import TaskDetail from 'pages/mytask/taskDetail/TaskDetail';


// 帮助中心
import Help from 'pages/help/Help.jsx'

// 设置
import Sets from 'pages/set/Set.jsx'
import Login from 'pages/dengluzhuce/Login'
import Signin from 'pages/dengluzhuce/Signin'
import ChangePsw from 'pages/dengluzhuce/ChangePsw'
import ForgetPsw  from 'pages/dengluzhuce/ForgetPsw'
import Sound from 'pages/set/sound/Sound.jsx'
import About from 'pages/set/about/About.jsx'
import Service from 'pages/set/about/Service'
import Privacy  from 'pages/set/about/Privacy'

//个人中心
import PersonalCenter from 'pages/personalCenter/PersonalCenter'

//my

import Informations from 'pages/my/viewComponents/informations/InformationsContainer'
import Fans from 'pages/my/viewComponents/fans/fansContainer'
import Attention from 'pages/my/viewComponents/contention/contentionContainer'
import Black from 'pages/my/viewComponents/blank/blankContainer'
import Grade from 'pages/my/viewComponents/grade/gradeContainer'
import Baoju from 'pages/my/viewComponents/baoju/baojContainer'
import Suggestion from 'pages/my/viewComponents/suggestion/suggestionContainer'

//text 
// import Text from '../text.jsx'

class MyChildRouter extends Component {
  render() {
    return (
      <Switch>
        {/* 账单 */}
        <Route path="/myChildRouter/bill" component={Bill}></Route>

        {/* 余额 */}
        <Route path="/myChildRouter/balance" component={Balance}></Route>

        {/* 充值 */}
        <Route path="/myChildRouter/recharge" component={Recharge}></Route>

        {/* 提现 */}
        <Route path="/myChildRouter/drawmoney" component={Drawmoney}></Route>

        {/* {我的任务} */}
        <Route path="/myChildRouter/mytask" component={Mytask}></Route>

         {/* {接单任务信息} */}
         <Route path="/myChildRouter/checktask/:id" component={CheckTask}></Route>

         {/* 完成任务详情 */}
        <Route path="/myChildRouter/taskDetail/:id" component={TaskDetail}></Route>

        {/* 完成任务结果 */}
        <Route path="/myChildRouter/taskComplete" component={TaskComplete}></Route>


        {/* {帮助中心} */}
        <Route path="/myChildRouter/help" component={Help}></Route>

        {/* {设置} */}
        <Route path="/myChildRouter/set" component={Sets}></Route>

        {/* {提示音设置} */}
        <Route path="/myChildRouter/sound" component={Sound}></Route>

        {/* {关于我们} */}
        <Route path="/myChildRouter/about" component={About}></Route>

         {/* {服务协议和隐私协议} */}
         <Route path="/myChildRouter/service" component={Service}></Route>
         <Route path="/myChildRouter/privacy" component={Privacy}></Route>

        {/* 个人信息 */}
        <Route path='/myChildRouter/informations' component={Informations}></Route>
        <Route path='/myChildRouter/fans' component={Fans}></Route>
        <Route path='/myChildRouter/attention' component={Attention}></Route>
        <Route path='/myChildRouter/black' component={Black}></Route>
        <Route path='/myChildRouter/grade' component={Grade}></Route>
        <Route path='/myChildRouter/suggestion' component={Suggestion}></Route>
        <Route path='/myChildRouter/baoju' component={Baoju}></Route>
        
        <Route path='/myChildRouter/personalcenter/:id' component={PersonalCenter}></Route>
        <Route path='/myChildRouter/text' component={Text}></Route>

        

        {/* 登陆 */}
        <Route path="/myChildRouter/login" component={Login}></Route>
        
        {/* 注册 */}
        <Route path="/myChildRouter/signin" component={Signin}></Route>

        {/* 修改密码 */}
        <Route path="/myChildRouter/changepsw" component={ChangePsw}></Route>

        {/* 忘记密码 */}
        <Route path="/myChildRouter/forgetpsw" component={ForgetPsw}></Route>

        {/* 重定向 */}
        <Redirect from="/myChildRouter" to="/index/my" exact></Redirect>

      </Switch>
    );
  }
}

export default MyChildRouter;